package cn.rengy.web.framework.shiro.token;

import org.apache.shiro.authc.AuthenticationToken;
/**
 * 微信登录成功后的自动登录
 * @author rengy
 *
 */
public class IdToken implements AuthenticationToken{

	private static final long serialVersionUID = -5534433778484744470L;
	private Long userid;
	private String clientId;
	public IdToken(Long userid,String clientId) {
		super();
		this.userid = userid;
		this.clientId = clientId;
	}

	@Override
	public Object getPrincipal() {
		return userid;
	}

	@Override
	public Object getCredentials() {
		return userid;
	}

	public Long getUserid() {
		return userid;
	}

	public void setUserid(Long userid) {
		this.userid = userid;
	}

	public String getClientId() {
		return clientId;
	}

	public void setClientId(String clientId) {
		this.clientId = clientId;
	}
	

    
}
